package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * ChemicalElements generated by hbm2java
 */
@Entity
@Table(name="chemical_elements"
    ,catalog="madr_bd10"
)
public class ChemicalElements  implements java.io.Serializable {


     private Integer idCheEle;
     private String nameCheEle;
     private boolean statusCheEle;
     private Set chemicalFertilzerCompositions = new HashSet(0);

    public ChemicalElements() {
    }

	
    public ChemicalElements(String nameCheEle, boolean statusCheEle) {
        this.nameCheEle = nameCheEle;
        this.statusCheEle = statusCheEle;
    }
    public ChemicalElements(String nameCheEle, boolean statusCheEle, Set chemicalFertilzerCompositions) {
       this.nameCheEle = nameCheEle;
       this.statusCheEle = statusCheEle;
       this.chemicalFertilzerCompositions = chemicalFertilzerCompositions;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_che_ele", unique=true, nullable=false)
    public Integer getIdCheEle() {
        return this.idCheEle;
    }
    
    public void setIdCheEle(Integer idCheEle) {
        this.idCheEle = idCheEle;
    }
    
    @Column(name="name_che_ele", nullable=false, length=45)
    public String getNameCheEle() {
        return this.nameCheEle;
    }
    
    public void setNameCheEle(String nameCheEle) {
        this.nameCheEle = nameCheEle;
    }
    
    @Column(name="status_che_ele", nullable=false)
    public boolean isStatusCheEle() {
        return this.statusCheEle;
    }
    
    public void setStatusCheEle(boolean statusCheEle) {
        this.statusCheEle = statusCheEle;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="chemicalElements")
    public Set getChemicalFertilzerCompositions() {
        return this.chemicalFertilzerCompositions;
    }
    
    public void setChemicalFertilzerCompositions(Set chemicalFertilzerCompositions) {
        this.chemicalFertilzerCompositions = chemicalFertilzerCompositions;
    }




}


